﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project2
{
    internal class 构造函数
    {
        public static void Main构造函数(string[] args)
        {
            Student student = new Student();
            Console.WriteLine(student.Id);
            Teacher teacher = new Teacher(2, "jkioas");
            Console.WriteLine(teacher.name);
        }
    }

    internal class Student
    {
        public Student()
        {
            this.Id = 729;
            this.Name = "zs";
        }

        public int Id { get; set; }
        public string Name { get; set; }
    }

    public class Teacher
    {
        public Teacher(int _id, string _name)
        {
            this.Id = _id;
            this.name = _name;
        }

        public Teacher()
        {
            this.Id = 2;
            this.name = "kpok";
        }

        public int Id { get; set; }
        public string name;
    }
}